import javax.xml.ws.Endpoint;
import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * 仓库管理WebService的发布类
 *
 * @author Chova
 * @date 2022/05/31
 */
public class WsServer {

    public static void main(String[] args) throws UnknownHostException {
        InetAddress ip = InetAddress.getLocalHost();
        String address = "http://" + ip.getHostAddress() + "/ws/inventory";
        Endpoint.publish(address, new WsInventoryImpl());
        System.out.println("仓库管理WebService接口发布成功!");
    }
}
